const http = require('http');
const url = require('url');

let server = http.createServer();

server.on('request',(req,res)=>{
  if(req.url.startsWith('/proxy')) {
    res.end('ok');
  }
});

server.listen(8888);